import React from 'react';
import ReactECharts from 'echarts-for-react';

// 在此组件中绘制一个简单的折线图
const Line = () => {
  // 返回折线图的配置对象
  let option = {
    xAxis: {
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: [150, 230, 224, 218, 135, 147, 260],
        type: 'bar'
    }]
  };
  return (
    <div>
      <ReactECharts  style={{ width: 400, height: 400 }}  option={option} />
    </div>
  );
};

export default Line;
